package com.ddx.dao;

import com.ddx.pojo.ShoppingStore;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ShoppingStoreMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(ShoppingStore record);

    int insertSelective(ShoppingStore record);

    ShoppingStore selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(ShoppingStore record);

    int updateByPrimaryKey(ShoppingStore record);

    /**
     * 更改点击量
     * @param record
     * @return
     */
    int updateHitById(ShoppingStore record);

    int updatePictureByUserId(ShoppingStore record);

    int updateByUserId(ShoppingStore record);

    ShoppingStore selectByUserId(@Param("userId") int userId);

}